package com.sam.orbs;

import java.util.Random;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class Enemy {
	private final int RADIUS = 25;


	private float x = 50;
	private float y = 50;

	private int vX = 5;
	private int vY = 5;
	private int color;
	private Bitmap img;

	public Enemy(int x, int y,int vX, int c, Context cont, int drawable){
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds = true;
		Bitmap Temp = BitmapFactory.decodeResource(cont.getResources(), drawable);
		img = Bitmap.createScaledBitmap(Temp, RADIUS * 2, RADIUS * 2, false);
		this.vX = vX;
		this.vY = vY;
		this.x = x;
		this.y = y;

		this.color = c;

	}

	public Color getColor(Color color){
		return color;

	}
	public void setColor(int color){
		this.color = color;
	}
	public float getX(){

		return x;

	}
	public float getY(){

		return y;

	}
	public int getRadius(){
		return RADIUS;
	}
	
	public Bitmap getImg(){
		return img;
	}
	public int getvX(){
		return vX;
	}
	public int getvY(){
		return vY;
	}
	public void setvX(int vX){
		this.vX = vX;
	}
	public void setvY(int vY){
		this.vY = vY;
	}
	public void setX(float x){
		this.x = x;
	}
	public void setY(float y){
		this.y = y;
	}
	public void eMove(){
		if(x >= 480 || x<0){
			vX = -vX;
			x += vX;
		}
		x += vX;
		y += vY;
	}
}

